package com.example.api.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/test")
public class TestController {

    @Value("${server.number}")
    private String number;

    @GetMapping("/test")
    public String test() {
        String resp = "此处为test,number:" + number;
        log.info(resp);
        return resp;
    }

}

